﻿using System;
using System.Collections.Concurrent;

namespace LF.Application.Helpers
{
	public class CashHelper
	{
		static ConcurrentDictionary<Guid,char> _dics = new ConcurrentDictionary<Guid, char>();

		public static bool CheckCash(Guid custId)
		{
			return _dics.ContainsKey(custId);
		}
		public static void PutCash(Guid custId)
		{
			_dics.TryAdd(custId, '1');
		}
		public static void DelCash(Guid custId)
		{
			_dics.Remove(custId, out _);

        }
	}
}

